package com.ysd.lis.controller.bac;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.dto.bac.BacAntClassDto;
import com.ysd.lis.request.bac.BacAntClassParam;
import com.ysd.lis.service.bac.BacAntSubClassService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * cold_chain.sys_module 前端控制器
 * </p>
 *
 * @author prs
 * @since 2024-12-18
 */
@Api(tags = "模块管理")
@RestController
@RequestMapping("/bac/ant/antSubClass")
public class BacAntSubClassController extends BaseController {
    @Autowired
    BacAntSubClassService bacAntSubClassService;
    @ApiOperation("查询")
    @GetMapping("/findBacAntSubClassList")
    public Result findBacAntSubClassList(BacAntClassParam param){
        return bacAntSubClassService.findBacAntSubClassList(param);
    }

    @ApiOperation("修改")
    @PostMapping("/saveOrUpdateBacAntSubClass")
    public Result saveOrUpdateBacAntSubClass(@RequestBody BacAntClassDto dto) {
        return bacAntSubClassService.saveOrUpdateBacAntSubClass(dto);
    }
    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteBacAntSubClassList")
    public Result batchDeleteBacAntSubClassList(@RequestBody BacAntClassDto dto){
        return  bacAntSubClassService.batchDeleteBacAntSubClassList(dto);
    }
}
